/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.digitalize.entity;

import com.jeesite.modules.digitalize.config.Constants;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * component_logEntity
 * @author patronli
 * @version 2023-09-08
 */
@Table(name="component_log", alias="a", label="component_log信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="content", attrName="content", label="内容"),
		@Column(name="message_status", attrName="messageStatus", label="0未读 1已读"),
		@Column(name="del_status", attrName="delStatus", label="0未删除 1已删除"),
		@Column(name="create_by", attrName="createBy", label="用户id", isUpdate=false, isQuery=false),
		@Column(name="create_date", attrName="createDate", label="create_date", isUpdate=false, isQuery=false),
		@Column(name="update_by", attrName="updateBy", label="update_by", isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="update_date", isQuery=false),
	}, orderBy="a.create_date DESC"
)
public class ComponentLog extends BaseDBEntity {
	
	private static final long serialVersionUID = 1L;
	@ApiModelProperty(value="内容")
	private String content;		// 内容
	private Integer messageStatus;		// 0未读 1已读
	private Integer delStatus = Constants.DEL_STATUA_0;		// 0未删除 1已删除

    public ComponentLog() {
    }


    @Length(min=0, max=200, message="内容长度不能超过 200 个字符")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public Integer getMessageStatus() {
		return messageStatus;
	}

	public void setMessageStatus(Integer messageStatus) {
		this.messageStatus = messageStatus;
	}
	
	public Integer getDelStatus() {
		return delStatus;
	}

	public void setDelStatus(Integer delStatus) {
		this.delStatus = delStatus;
	}
	
}